﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using Itop.KSRY.Model;

namespace Itop.KSRY {
    public partial class UCksmanManager : UserControl {
        public UCksmanManager() {
            InitializeComponent();
            gridView1.CellValueChanged += new DevExpress.XtraGrid.Views.Base.CellValueChangedEventHandler(gridView1_CellValueChanged);
        }
        protected override void OnLoad(EventArgs e) {
            base.OnLoad(e);
            colksbz.Visible = false;
            //coljb.Visible = false;
        }
        public void Init() {
            ksmanBindingSource.DataSource = DBHelper.SqlMapper.GetList<ksman>(null);
        }
        void gridView1_CellValueChanged(object sender, DevExpress.XtraGrid.Views.Base.CellValueChangedEventArgs e) {
            DBHelper.SqlMapper.Update<ksman>(gridView1.GetRow(e.RowHandle) as ksman);
        }
        public void deleteall()
        {
            
        }
    }
}
